<?
$param = (PARAMS != 'default') ? PARAMS : key($page->subpages);
$subpage = $page->subpages->$param->$lang;
?>
<hgroup><?=$subpage->title ? '<h2>'.TITLE.'</h2> / <h1>'.$subpage->title.'</h1>' : '<h1>'.TITLE.'</h1>'?></hgroup>
<div id="aside">
<menu>
<?foreach ($page->subpages as $k=>$i): if(!$j) $first = $k; $j++; ?> 
	<a href="/<?=PAGE?>/<?=$k?>" <?=$k==$param?'class="selected"':''?>><?=$i->$lang->title?></a>
<?endforeach;?>
</menu>
</div>
<div id="content">
<h2 class="none"><?=$subpage->description?></h2>
<?=$subpage->content?>
</div>
<div class="clear"></div>
<script src="//<?=COOKIELESS?>/lib/js/ubox-min.js"></script>
<script>
$('#page .thumb').ubox();
</script>